package com.godGuang.servser.impl;

import com.godGuang.domain.Catalogue;
import com.godGuang.mapper.DepartmentMapper;
import com.godGuang.servser.DepartmentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author : 段敏强
 * @className : DepartmentServiceImpl
 * @description : 描述说明该类的功能
 * @createTime : 2024/01/08 11:59
 */


/**
 * 科室业务层接口实现类
 */
@Service
public class DepartmentServiceImpl implements DepartmentService {

    /**
     * 科室mapper
     */
    @Autowired
    private DepartmentMapper departmentMapper;


    /**
     * 科室列表
     *
     * @return 返回列表
     */
    @Override
    public List<Catalogue> departmentList() {
        // 调用mapper接口获取列表
        return departmentMapper.departmentList();
    }
}
